const TokenKey = 'App-Token'

export function getToken() {
  return uni.getStorageSync(TokenKey)
}

export function setToken(token) {
  return uni.setStorageSync(TokenKey, token)
}

export function removeToken() {
  return uni.removeStorageSync(TokenKey)
}


const RefreshTokenKey = 'App-Refresh-Token'

export function getRefreshToken() {
  return uni.getStorageSync(RefreshTokenKey)
}

export function setRefreshToken(refreshToken) {
  return uni.setStorageSync(RefreshTokenKey, refreshToken)
}

export function removeRefreshToken() {
  return uni.removeStorageSync(RefreshTokenKey)
}

const CurHospitalIdKey = 'App-Cur-Hospital-Id'

export function getCurHospitalId() {
  return uni.getStorageSync(CurHospitalIdKey)
}

export function setCurHospitalId(hospitalId) {
  return uni.setStorageSync(CurHospitalIdKey, hospitalId)
}

export function removeCurHospitalId() {
  return uni.removeStorageSync(CurHospitalIdKey)
}
